package controller.api;
import com.jfinal.aop.Clear;
import com.jfinal.aop.Inject;

import common.inter.WxUserInter;
import model.Servicer;
import service.ServicerService;

public class ApiServicerController extends BaseApiController {
	@Inject ServicerService servicerService ;

	@Clear(WxUserInter.class)
	public void apply() {
		Servicer servicer = getModel(Servicer.class , "" , true);
		servicer.keep("name","address","license","licensePic","authPic","remark","contacts","mobile");
	    renderJson(servicerService.apply(servicer));
    }
}
